using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace Coriander.Text.RegularExpressions
{
    /// <summary>
    /// 
    /// </summary>
    public class PatternToken
    {
        readonly String name;

        readonly Regex regularExpression;
        
        /// <summary>
        /// 
        /// </summary>
        public String Name
        {
            get { return name; }
        }

        /// <summary>
        /// 
        /// </summary>
        public Regex RegularExpression
        {
            get { return regularExpression; }
        } 


        /// <summary>
        /// ctor
        /// </summary>
        private PatternToken() { }

        /// <summary>
        /// ctor : String, Regex
        /// </summary>
        /// <param name="name"></param>
        /// <param name="regularExpression"></param>
        public PatternToken(String name, Regex regularExpression)
        {
            this.name = name;
            this.regularExpression = regularExpression;  
        }
    }
}
